qui(function(require, exports, module) {
    StreamSearch.Config = $.extend({}, Ancestor.Config, {


        // 编码状态
        STATUS: {},

        // 码流清晰度
        TYPE: {},

        // 地区
        DEST: {},

        CUTTER_ID: {
            FLV: [],
            TS: []
        },

        TABLE_COLMODEL_CONFIG: {
            /*
             id: {                    name: 'id',
             index:'id',
             title: false,
             width: 50,
             align: 'center',
             sortable: false
             },*/
            channelName: {
                name: 'channelName',
                index: 'channelName',
                title: false,
                width: 100,
                align: 'center',
                sortable: false,
                formatter: function(v, o, r) {
                    return StreamSearch.Util.formatter.channelName(v, r);
                }
            },
            streamName: {
                name: 'streamName',
                index: 'streamName',
                width: 150,
                title: false,
                align: 'center',
                sortable: false,
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.streamName(v, r);
                }
            },

            streamIp: {
                name: 'streamIp',
                index: 'streamIp',
                width: 90,
                title: false,
                align: 'center',
                sortable: false,
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.streamIp(v, r);
                }

            },

            encodedIp: {
                name: 'encodedIp',
                index: 'encodedIp',
                width: 80,
                title: false,
                align: 'center',
                sortable: false,
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.encodedIp(v, r);
                }
            },

            inputSignal: {
                name: 'inputSignal',
                index: 'encodedIp',
                width: 80,
                title: false,
                align: 'center',
                sortable: false,
                formatter: function (v, o, r) {
                    return Stream.Util.formatter.inputSignal(v, r);
                }
            },

            dolbySignal: {
                name: 'dolbySignal',
                index: 'dolbySignal',
                width: 80,
                title: false,
                align: 'center',
                sortable: false,
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.dolbySignal(v, r);
                }
            },

            //dest: {
            //    name: 'dest',
            //    index: 'dest',
            //    width: 40,
            //    title: false,
            //    align: 'center',
            //    sortable: false,
            //    formatter: function(v, o, r) {
            //        return Stream.Util.formatter.dest(v, r);
            //    }
            //},

            streamType: {
                name: 'streamType',
                index: 'streamType',
                title: false,
                width: 60,
                sortable: false,
                align: 'center',
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.streamType(v, r);
                }

            },

            status: {
                name: 'status',
                index: 'status',
                title: false,
                width: 60,
                sortable: false,
                align: 'center',
                formatter: function(v, o, r) {
                    return Stream.Util.formatter.status(v, r);
                }

            },

            bitRate: {
                name: 'bitRate',
                index: 'bitRate',
                title: false,
                width: 60,
                align: 'center',
                sortable: false
            },

            inputBits: {
                name: 'inputBits',
                index: 'inputBits',
                title: false,
                width: 75,
                align: 'center',
                sortable: false
            },


            outputBits: {
                name: 'outputBits',
                index: 'outputBits',
                title: false,
                width: 80,
                align: 'center',
                sortable: false
            },


            aspectRatio: {
                name: 'aspectRatio',
                index: 'aspectRatio',
                title: false,
                align: 'center',
                width: 65
            },

            frameRate: {
                name: 'frameRate',
                index: 'frameRate',
                title: false,
                align: 'center',
                width: 45
            },

            screenSize: {
                name: 'screenSize',
                index: 'screenSize',
                title: false,
                sortable: false,
                align: 'center',
                width: 75

            },
            encodeType: {
                name: 'encodeType',
                index: 'encodeType',
                title: false,
                width: 70,
                align: 'center',
                sortable: false,

                formatter: function(v, o, r) {
                    return Stream.Util.formatter.encodeType(v, r);
                }
            },

            audio: {
                name: 'audio',
                index: 'audio',
                title: false,
                width: 70,
                align: 'center',
                sortable: false
            },

            peerCount: {
                name: 'peerCount',
                index: 'peerCount',
                width: 40,
                sortable: false,
                align: 'center',
                title: false
            },

            addTime: {
                name: 'addTime',
                index: 'addTime',
                width: 120,
                sortable: false,
                align: 'center',
                title: false
            },

            updateTime: {
                name: 'updateTime',
                index: 'updateTime',
                width: 120,
                sortable: false,
                align: 'center',
                title: false
            },
            isEnable: {
                name: 'isEnable',
                index: 'isEnable',
                width: 75,
                sortable: false,
                align: 'center',

                formatter: function(v, o, r) {
                    return Stream.Util.formatter.isEnable(v, r);
                }
            },

        },


        TABLE: { //素材库查询列表配置
            url: '/api/stream/search',

            loadBeforeSend: function(xhr, settings) {
                var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },

            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,

            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },

            //datatype:"jsonp",
            multiselect: false,
            colNames: ["频道名称", "流名称", "RTMP地址", "编码器地址", "信号源", "杜比信号源", "清晰度", "编码状态",
                "码流", "推流流速率", "下载流速率", "画面比例", "帧率",
                "画面尺寸", "视频类型", "音频类型", "镜像服务器数", "添加时间", "最后更新时间", "上下线状态"
            ],

            colModel: ['channelName', 'streamName', 'streamIp', 'encodedIp', 'inputSignal','dolbySignal', 'streamType', 'status',
                'bitRate', 'inputBits', 'outputBits', 'aspectRatio', 'frameRate', 'screenSize', 'encodeType', 'audio',
                'peerCount', 'addTime', 'updateTime', 'isEnable'
            ]
        },


        // 流列表信息
        STREAMS_INFO: {},

        // 频道信息
        CHANNEL_INFO: null,

    });
});
